package cn.iocoder.yudao.module.exam.controller.admin.questionoption.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 试题选项新增/修改 Request VO")
@Data
public class QuestionOptionSaveReqVO {

    @Schema(description = "主键",  example = "26653")
    private Long id;
    @Schema(description = "试题id")
    private Long bankId;
    @Schema(description = "题目ID",  example = "14486")
    private Long questionId;

    @Schema(description = "选项文本")
    private String optionText;

    @Schema(description = "选项链接", example = "https://www.iocoder.cn")
    private String optionUrl;

    @Schema(description = "是否正确，0 不正确，1 正确")
    private Integer corrected;

    private Boolean correct;

    public Boolean getCorrect() {
        return corrected!=null&&corrected==1?true:false;
    }

}